package com.game.center.messages.request;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotEmpty;

@Data
@Schema(title = "用户账户密码登录请求参数")
@EqualsAndHashCode(callSuper = false)
public class LoginRequestParam {

    @Schema(title = "登录账号/手机号")
    @NotEmpty(message = "用户登录账号/手机号不能为为空")
    @Length(min = 1 , max = 30 , message = "用户登录账号/手机号长度限制为1~30")
    private String account;

    @Schema(title = "登录密码")
    @NotEmpty(message = "用户登录密码不能为为空")
    @Length(min = 1 , max = 30 , message = "用户登录密码长度限制为1~30")
    private String password;

}
